#ifndef TWITTER_H
#define TWITTER_H

#include <QMainWindow>
#include <QtNetwork/QNetworkAccessManager>
#include <QUrl>
#include <QtNetwork/QNetworkReply>
#include <QtXml/QXmlStreamReader>
#include <QtDebug>
#include <QStringListModel>


namespace Ui {
    class Twitter;
}

class Twitter : public QMainWindow
{
    Q_OBJECT

public:
    explicit Twitter(QWidget *parent = 0);
    ~Twitter();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::Twitter *ui;
    QXmlStreamReader xml;

    void parseXml();
   // QNetworkAccessManager * manager ;

private slots:
    void on_pushButton_released();
    void replyFinished(QNetworkReply*);

};

#endif // TWITTER_H
